package com.banyuan.controller;

import com.banyuan.domain.Account;
import com.banyuan.service.impl.AccountServiceImpl;

import java.util.List;

public class AccountController {

    private AccountServiceImpl accountService;

    public AccountServiceImpl getAccountService() {
        return accountService;
    }

    public void setAccountService(AccountServiceImpl accountService) {
        this.accountService = accountService;
    }

    public List<Account> selectAll() {
        return accountService.selectAll();
    }

    public Account selectById(Integer id) {
        return accountService.selectById(id);
    }
}
